﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Tasks;

namespace EdBusTracker.V2
{
    public partial class Page1 : PhoneApplicationPage
    {
        private string interpunct = '\u00B7'.ToString();
        public Page1()
        {
            InitializeComponent();
            textBlock1.Text = interpunct + " Lothain Bus Tracker v1.0" + "\n";
            textBlock1.Text += interpunct + " Thanks to Niall Scott & Andrew De Quincy, the writers of the Android versions, for making their souce code available\n";
            textBlock1.Text += interpunct + " Project home and source code can be found at http://code.google.com/p/edinburgh-bus-tracker-wp7/\n";
            textBlock1.Text += interpunct + " Lothain Buses take no responsibilty for the accuracy of the data feed used.\n";
            textBlock1.Text += interpunct + " No user data is collected by this application.\n";
            textBlock1.Text += interpunct + " Please send any feedback using the input box below\n";
            textBlock1.FontSize = 18;
        }

        private void buttonBack_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.GoBack();
        }

        private void buttonSend_Click(object sender, RoutedEventArgs e)
        {
            EmailComposeTask emailcomposer = new EmailComposeTask();
            emailcomposer.To = "angus2k3@msn.com</a>";
            emailcomposer.Subject = "bus tracker feedback";
            emailcomposer.Body = this.textBlock1.Text;
            emailcomposer.Show();
        }
    }
}